# coding=utf-8


"""This module is a wrapper for svs requests"""

from pypalo.basic import response, url, default, arguments

request_group="svs"

def info(sid, host=default["host"], port=default["port"]):
	'''
	This function wraps PALO API Request
	http://[SERVER]:[PORT]/server/info[?PARAMETER1=value[&...]].
	
	Parameters:
		sid [string] <Session identifier for a server connection. Use the /server/login request to get a valid session identifier.>

	Result:
		0 svs_active [integer] <0 - not active, 1 - active>
		1 login_mode [integer] <0 - none, 1 - information; 2 - authentification; 3 - authorization>
		2 cube_worker_active [integer] <0 - not active, 1 - active>
		3 drill_through_enabled [integer] <0 - disabled, 1 - enabled (switch in palo.ini)>
		
	More info at http://host:port/api/svs/info
	'''
	#beginning of function suite
	request_name="info"
	#end of function suite
	return response(url(host, port, request_group, request_name, arguments(locals())))

#querys dictionary
query={}
query["info"]=info

#end of svs module suite